<template>
    <section class="circle-delist">
        <Header style="z-index:1025">
            <header-menu></header-menu>
        </Header>
        <top-search :navlist="NavTitle"></top-search>
        <user-nav :list="listTitle"></user-nav>
        <cricle-top :toplist="toplist"></cricle-top>
        <div class="container">
            <label-list></label-list>
            <div class="circle-left">
             <div class="userImg">
                 <img :src="$Url+list.avatar" alt="">
                 <p>{{list.username}}</p>
                 <img src="../../assets/nvshen.png" alt="">
             </div>
                <!--<postop-time></postop-time>-->
                <div class="postop-text">
                 <p>{{list.content}}</p>
                </div>
                <comm-circle :time="list.addtime" :list="evaluate" :id="id"></comm-circle>
            </div>
            <div class="circle-right">
                <div class="beautifuldiary" style="display: none">
                    <Divider style="color: white">美丽日记</Divider>
                    <div class="text">
                        <p>项目：<span>鼻部综合</span></p>
                        <p>日期：2018-02-27</p>
                        <p>医院：石家庄苏亚美联臣整形</p>
                        <p>医生：单小敏</p>
                    </div>
                    <p @click="fun()">查看美丽日记 >></p>

                </div>
                <related-circles></related-circles>
                <side-list :list="sidelist"></side-list>
                <list-posts :postslist="postslist"></list-posts>
            </div>
            <div style="clear: both"></div>
        </div>

        <bottom-icon></bottom-icon>
        <Footer>
            <page-footer></page-footer>
        </Footer>
    </section>
</template>

<script>
    import HeaderMenu from '@/components/Header/'
    import TopSearch from '../../components/TopSearch/'
    import PageFooter from '../../components/Footer/'
    import BottomIcon from '../../components/BottomIcon/'
    import CricleTop from '../../components/Circle/Cricle-top'
    import SideList from "@/components/SideMenu/SideList"
    import ListPosts from "@/components/ListItem/ListPosts"
    import userNav from '../../components/Usertop/userNav'
    import LabelList from '../../components/Circle/LabelList'
    import RelatedCircles from '../../components/Circle/RelatedCircles'
    import CommCircle from "../../components/Comment/CommCircle"
    // import PostopTime from "../../components/Circle/PostopTime"
    export default {
        name: "CircleDelist",
        components: {
            PageFooter,
            BottomIcon,
            HeaderMenu,
            CricleTop,
            SideList,
            ListPosts,
            userNav,
            TopSearch,
            LabelList,
            CommCircle,
            RelatedCircles,
            // PostopTime
        },
        data () {
            return {
                sidelist: [
                    {
                        id: 1,
                        name: '竞价排名',
                        child: [
                            {id: 1,title: '【每月限5个名额】高效便捷，量齿定制，改变脸型，功能与美学矫正二...',price: 7800, hot: 20, num: 10, discount: 7.5,img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1245094042,1192779942&fm=26&gp=0.jpg'},
                            {id: 2,title: '【每月限5个名额】高效便捷，量齿定制，改变脸型，功能与美学矫正二...',price: 7800, hot: 20, num: 10, discount: 7.5,img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1245094042,1192779942&fm=26&gp=0.jpg'},
                            {id: 3,title: '【每月限5个名额】高效便捷，量齿定制，改变脸型，功能与美学矫正二...',price: 7800, hot: 20, num: 10, discount: 7.5,img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1245094042,1192779942&fm=26&gp=0.jpg'},
                            // {id: 4,title: '【每月限5个名额】高效便捷，量齿定制，改变脸型，功能与美学矫正二...',price: 7800, hot: 20, num: 10, discount: 7.5,img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1245094042,1192779942&fm=26&gp=0.jpg'}
                        ]
                    },
                    {
                        id: 2,
                        name: '大家正在预约',
                        child: [
                            {id: 21,title: '【每月限5个名额】高效便捷，量齿定制，改变脸型，功能与美学矫正二...',price: 7800, hot: 20, num: 10, discount: 7.5,img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1245094042,1192779942&fm=26&gp=0.jpg'},
                            {id: 22,title: '【每月限5个名额】高效便捷，量齿定制，改变脸型，功能与美学矫正二...',price: 7800, hot: 20, num: 10, discount: 7.5,img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1245094042,1192779942&fm=26&gp=0.jpg'},
                            {id: 23,title: '【每月限5个名额】高效便捷，量齿定制，改变脸型，功能与美学矫正二...',price: 7800, hot: 20, num: 10, discount: 7.5,img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1245094042,1192779942&fm=26&gp=0.jpg'},
                            // {id: 24,title: '【每月限5个名额】高效便捷，量齿定制，改变脸型，功能与美学矫正二...',price: 7800, hot: 20, num: 10, discount: 7.5,img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1245094042,1192779942&fm=26&gp=0.jpg'}
                        ]
                    },
                    {
                        id: 3,
                        name: '新品推荐',
                        child: [
                            {id: 21,title: '【每月限5个名额】高效便捷，量齿定制，改变脸型，功能与美学矫正二...',price: 7800, hot: 20, num: 10, discount: 7.5,img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1245094042,1192779942&fm=26&gp=0.jpg'},
                            {id: 22,title: '【每月限5个名额】高效便捷，量齿定制，改变脸型，功能与美学矫正二...',price: 7800, hot: 20, num: 10, discount: 7.5,img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1245094042,1192779942&fm=26&gp=0.jpg'},
                            {id: 23,title: '【每月限5个名额】高效便捷，量齿定制，改变脸型，功能与美学矫正二...',price: 7800, hot: 20, num: 10, discount: 7.5,img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1245094042,1192779942&fm=26&gp=0.jpg'},
                            // {id: 24,title: '【每月限5个名额】高效便捷，量齿定制，改变脸型，功能与美学矫正二...',price: 7800, hot: 20, num: 10, discount: 7.5,img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1245094042,1192779942&fm=26&gp=0.jpg'}
                        ]
                    },
                    {
                        id: 4,
                        name: '相关推荐',
                        relevant:1,
                        child: [
                            {id: 21,title: '【每月限5个名额】高效便捷，量齿定制，改变脸型，功能与美学矫正二功能与美学矫正二功能与美学矫正二功能与美学矫正二...',price: 7800, hot: 20, num: 10, discount: 7.5,img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1245094042,1192779942&fm=26&gp=0.jpg'},
                            {id: 22,title: '【每月限5个名额】高效便捷，量齿定制，改变脸型，功能与美学矫正二功能与美学矫正二功能与美学矫正二...',price: 7800, hot: 20, num: 10, discount: 7.5,img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1245094042,1192779942&fm=26&gp=0.jpg'},
                            {id: 23,title: '【每月限5个名额】高效便捷，量齿定制，改变脸型，功能与美学矫正二功能与美学矫正二功能与美学矫正二功能与美学矫正二...',price: 7800, hot: 20, num: 10, discount: 7.5,img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1245094042,1192779942&fm=26&gp=0.jpg'},
                            // {id: 24,title: '【每月限5个名额】高效便捷，量齿定制，改变脸型，功能与美学矫正二...',price: 7800, hot: 20, num: 10, discount: 7.5,img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1245094042,1192779942&fm=26&gp=0.jpg'}
                        ]
                    },
                    {
                        id: 5,
                        name: '推荐医院',
                        hospital:1,
                        child: [
                            {id: 21,hospital: '北京美莱医疗美容',city: '北京市',img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1245094042,1192779942&fm=26&gp=0.jpg'},
                            {id: 22,hospital: '北京美莱医疗美容',city: '北京市',img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1245094042,1192779942&fm=26&gp=0.jpg'},
                            {id: 23,hospital: '北京美莱医疗美容',city: '北京市',img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1245094042,1192779942&fm=26&gp=0.jpg'},
                            // {id: 24,title: '【每月限5个名额】高效便捷，量齿定制，改变脸型，功能与美学矫正二...',price: 7800, hot: 20, num: 10, discount: 7.5,img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1245094042,1192779942&fm=26&gp=0.jpg'}
                        ]
                    },
                    {
                        id: 6,
                        name: '推荐医生',
                        hospital:1,
                        child: [
                            {id: 21, dortor:1,name:'孙斌',hospital: '北京美莱医疗美容',city: '北京市',img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1245094042,1192779942&fm=26&gp=0.jpg'},
                            {id: 22, dortor:1,name:'孙斌',hospital: '北京美莱医疗美容',city: '北京市',img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1245094042,1192779942&fm=26&gp=0.jpg'},
                            {id: 23, dortor:1,name:'孙斌',hospital: '北京美莱医疗美容',city: '北京市',img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1245094042,1192779942&fm=26&gp=0.jpg'},
                            // {id: 24,title: '【每月限5个名额】高效便捷，量齿定制，改变脸型，功能与美学矫正二...',price: 7800, hot: 20, num: 10, discount: 7.5,img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1245094042,1192779942&fm=26&gp=0.jpg'}
                        ]
                    },
                ],
                postslist: [
                    {
                        id: 1,
                        name: '浏览最多的帖子',
                        child: [
                            {id: 1,title: '【每月限5个名额】高效便捷，量齿定制，改变脸型，功能与美学矫正二...'},
                            {id: 2,title: '【每月限5个名额】高效便捷，量齿定制，改变脸型，功能与美学矫正二...',},
                            {id: 3,title: '【每月限5个名额】高效便捷，量齿定制，改变脸型，功能与美学矫正二...',},
                        ]
                    },
                    {
                        id: 2,
                        name: '回复最多的帖子',
                        child: [
                            {id: 1,title: '【每月限5个名额】高效便捷，量齿定制，改变脸型，功能与美学矫正二...',},
                            {id: 2,title: '【每月限5个名额】高效便捷，量齿定制，改变脸型，功能与美学矫正二...',},
                            {id: 3,title: '【每月限5个名额】高效便捷，量齿定制，改变脸型，功能与美学矫正二...',},
                        ]
                    },
                ],
                listTitle: [
                    {id:1,name:"广场",show:false,path:'/circle',
                        child: {id:4,name:"帖子详情",show:false,path:'/circledelist',
                            child: {id:4,name:"报名人数",show:false,path:''},
                        },
                    },
                    {id:2,name:"活动",show:true,path:'/activity',
                        child: {id:4,name:"活动详情",show:false,path:'/activitydelists',
                            child: {id:4,name:"报名人数",show:false,path:'/activityregistration'},
                        },
                    },
                    {id:3,name:"专题",show:false,path:'/special',
                        child: {id:4,name:"活动详情",show:false,path:'/specialdelist',
                            child: {id:4,name:"报名人数",show:false,path:''},
                        },
                    },
                    {
                        id: 4, name: "达人", show: false, path: '/aman',
                        child: {id: 4, name: "达人详情", show: false, path: '/amandelists',
                            child: {id:4,name:"报名人数",show:false,path:''},
                        }
                    }
                ],
                toplist: [
                    {id:1,num:12345,altogether:123456,type:1},
                ],
                NavTitle:{
                    id:1,
                    name:'圈子',
                    title:'越泡越美  越美越泡',
                    // text:'写帖子',
                    // mytext:'我的帖子'
                    type:5
                },
                list:{},
                id:2,
                evaluate:[]
            }
        },
        created () {
          this.getinfo()
        },
        methods :{
            fun () {
                this.$router.push({path: '/diary'})
            },
            getinfo () {
                let _this = this
                this.$post('/api/circle/postInfo',
                    {
                        post_id:_this.id
                    }, function (res) {
                        console.log(res)
                        _this.list = res.data
                        _this.evaluate =res.data.evaluate
                        _this.evaluate.forEach(function (i) {
                            _this.$set(i,'show', 1);
                        })
                    }, function (errcode, errmsg,err) {
                        console.log(err)
                        console.log(errmsg)
                    })

            }
        }
    }
</script>

<style scoped lang="less">
    @import "../../style/style.less";
    .swiper{
        height: 375px;
        img{
            width: 1917px;
            height: 375px;
        }
    }
    .circle-left{
        width: 900px;
        float: left;
        .comment-head{
            padding-bottom: 15px;
            .option{
                margin-top: -17px;
            }
            p{
                width: 74%;
                float: left;
                color: #fd5471;
                font-size: 12px;
                padding-left: 40px;
                .icon{
                    margin-right: 5px;
                    margin-left: 20px;
                    font-size: 15px;
                }
                span{
                    color: #999999;
                    /*padding-left: 100px;*/
                    float: right;
                }
            }
        }
        .userImg{
            text-align: center;
            width: 100px;
            float: left;
            >:first-child{
                width: 94px;
                height: 94px;
                border-radius: 50%;
            }
            p{
                text-align: center;
                color: @theme-color-dark;
                font-size: 16px;
            }
        }
        .postop-text{
            width: 765px;
            float: right;
            margin-right: 15px;
            padding-top: 15px;
            padding-bottom: 100px;
            >p{
                font-size: 15px;
                font-weight: normal;
                font-stretch: normal;
                letter-spacing: 0px;
                color: #666666;
                padding-bottom: 5px;
            }
        }
    }
    .circle-right{
        float: right;
        width: 260px;
        .beautifuldiary{
            padding: 5px 15px 10px 15px;
            width: 260px;
            background-color: #fe5471;
            border-radius: 4px;
            margin-bottom: 30px;
            >p{
                text-align: center;
                font-size: 12px;
                font-weight: normal;
                font-stretch: normal;
                letter-spacing: 0px;
                color: #ffffff;
                opacity: 0.5;
                padding-top: 5px;
                cursor: pointer;
            }
        }
        .text{
            border-bottom: 1px solid #ffffff;
            >p{
                font-size: 14px;
                font-weight: normal;
                font-stretch: normal;
                letter-spacing: 0px;
                color: #ffffff;
                padding-bottom: 5px;

            }
            span{
                padding: 5px;
                background-color: rgba(250,250,250,0.3);
                border-radius: 4px;
                /*opacity: 0.3;*/
            }
        }


    }
</style>